import java.util.ArrayList;
import java.util.Iterator;
import java.util.Scanner;


public class LocalCode {
	public static void main(String[] args) {
		LocalCode solution = new LocalCode();
		
			int amount = 43203    , rate=60      , wrapperExchangeCount= 5;
			int numberOfChoclates = solution.getNumberOfChoclates(amount,rate);
			int choclateCount = numberOfChoclates + solution.getChoclateForWrappers(numberOfChoclates,wrapperExchangeCount);
			System.out.println(choclateCount);
	}
	
	public int getNumberOfChoclates(int amount, int rate){
		return amount/rate;
	}
	
	public int getChoclateForWrappers(int noOfChoclates,int wrapperExchangedForChoclates){
		
		if(noOfChoclates < wrapperExchangedForChoclates){
			return 0;
		}
		int quotient=0,remainder =0;
		int tempQuotient = 0;
		while(noOfChoclates >=wrapperExchangedForChoclates){
			tempQuotient =(noOfChoclates/wrapperExchangedForChoclates);
			quotient += tempQuotient;
			remainder += noOfChoclates%wrapperExchangedForChoclates;
			noOfChoclates = tempQuotient;
		}
		if(remainder >= wrapperExchangedForChoclates){
			quotient += remainder/wrapperExchangedForChoclates;
		}else if((remainder+tempQuotient) >= wrapperExchangedForChoclates){
			quotient += (remainder+tempQuotient)/wrapperExchangedForChoclates;
		}
		return quotient;
	}
	public int getChoclates(int noOfChoclates,int wrapper)
	{
		return 0;
	}
}
